<!doctype html>
<html>
<head>
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	
	<link href="__ROOT__/weTall/static/css/admin/style.css" rel="stylesheet"/>
	
	<title>公告管理</title>
	<script>
	var URL = '__ROOT__/weTall/index.php/admin-index';
	var SELF = '__ROOT__/weTall/index.php?g=admin&m=index&a=index';
	var ROOT_PATH = '__ROOT__/weTall';
	var APP	 =	 '__ROOT__/weTall/index.php';
	//语言项目
	var lang = new Object();
	lang.connecting_please_wait = "请稍后...";lang.confirm_title = "提示消息";lang.move = "移动";lang.dialog_title = "消息";lang.dialog_ok = "确定";lang.dialog_cancel = "取消";lang.please_input = "请输入";lang.please_select = "请选择";lang.not_select = "不选择";lang.all = "所有";lang.input_right = "输入正确";lang.plsease_select_rows = "请选择要操作的项目！";lang.upload = "上传";lang.uploading = "上传中";lang.upload_type_error = "不允许上传的文件类型！";lang.upload_size_error = "文件大小不能超过{sizeLimit}！";lang.upload_minsize_error = "文件大小不能小于{minSizeLimit}！";lang.upload_empty_error = "文件为空，请重新选择！";lang.upload_nofile_error = "没有选择要上传的文件！";lang.upload_onLeave = "正在上传文件，离开此页将取消上传！";
	</script>


<script src="__ROOT__/weTall/static/js/jquery/jquery.js"></script>
<script src="__ROOT__/weTall/static/js/jquery/plugins/jquery.tools.min.js"></script>
<script src="__ROOT__/weTall/static/js/jquery/plugins/formvalidator.js"></script>
<script src="__ROOT__/weTall/static/js/pinphp.js"></script>
<script src="__ROOT__/weTall/static/js/admin.js"></script>
<script>
//初始化弹窗
(function (d) {
    d['okValue'] = lang.dialog_ok;
    d['cancelValue'] = lang.dialog_cancel;
    d['title'] = lang.dialog_title;
})($.dialog.defaults);
</script>

<script src="__ROOT__/weTall/static/js/jquery/plugins/listTable.js"></script>
<script>
$(function(){
	$('.J_tablelist').listTable();
});
</script><script src="__ROOT__/weTall/static/js/jquery/plugins/jquery.treetable.js"></script>
<script>
$(function(){
    //initialState:'expanded'
    $("#J_cate_tree").treeTable({indent:20,treeColumn:2});
    $(".J_preview").preview();
});        
</script> 

<link rel="stylesheet" type="text/css" href="__ROOT__/weTall/static/css/admin/style.css" />
 
</head>

<body>
<div id="J_ajax_loading" class="ajax_loading">提交请求中，请稍候...</div>
<div class="subnav">
    <div class="content_menu ib_a blue line_x">
    	<a class="add fb J_showdialog" href="javascript:void(0);" data-uri="__ROOT__/weTall/index.php?g=Admin&m=info_notice&a=add" data-title="添加公告" data-id="add" data-width="520" data-height="360"><em>添加公告</em></a>
	</div>
</div>
<!--标签-->
<div class="pad_lr_10" >

	<form name="searchform" method="get" action="__ROOT__/weTall/index.php?g=admin&m=info_notice&a=_search">
    <table width="100%" cellspacing="0" class="search_form">
        <tbody>
            <tr>
            <td>
            <div class="explain_col">
            	<input type="hidden" name="g" value="admin" />
                <input type="hidden" name="m" value="info_notice" />
                <input type="hidden" name="a" value="index" />
                <input type="hidden" name="menuid" value="{$menuid}" />
              	 标题:
                <input name="keyword" type="text" class="input-text" size="25" value="" />
                <input type="submit" name="search" class="btn" value="搜索" />
        	</div>
            </td>
            </tr>
        </tbody>
    </table>
    </form>

    <div class="J_tablelist table_list" data-acturi="__ROOT__/weTall/index.php?g=admin&m=info_notice&a=ajax_edit">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
                <th width="40"><input type="checkbox" name="checkall" class="J_checkall"></th>
				<th width="50"><span tdtype="order_by" fieldname="id">ID</span></th>
                <th align="left"><span data-tdtype="order_by" data-field="name">通知标题</span></th>
                <th align="left"><span data-tdtype="order_by" data-field="name">内容</span></th>
                <th align="left"><span data-tdtype="order_by" data-field="name">发布时间</span></th>
                <th width="50" align="left"><span data-tdtype="order_by" data-field="ordid">排序</span></th>
                <th width="40"><span data-tdtype="order_by" data-field="status">状态</span></th>
                <th width="120">管理操作</th>
            </tr>
        </thead>
    	<tbody>
            <volist name="list" id="val">
            <tr>
                <td align="center"><input type="checkbox" class="J_checkitem" value="{Lanrain:$val.id}"></td>
				<td align="center">{Lanrain:$val.id}</td>
                <td align="left"><span data-tdtype="edit" data-field="title" data-id="{$val.id}" >{Lanrain:$val.title}</span></td>
                <td align="left"><span data-tdtype="edit" data-field="content" data-id="{$val.id}" >{Lanrain:$val.content}</span></td>
                <td align="left"><span data-tdtype="edit" data-field="ptime" data-id="{$val.id}" >{Lanrain:$val.ptime|date='Y-m-d',###}</span></td>
                <td align="left"><span data-tdtype="edit" data-field="ordid" data-id="{Lanrain:$val.id}" class="tdedit" style="color:{Lanrain:$val.colors};">{Lanrain:$val.ordid}</span></td>
                <td align="center"><img data-tdtype="toggle" data-id="{$val.id}" data-field="status" data-value="{Lanrain:$val.status}" src="__ROOT__/weTall/static/images/admin/toggle_<if condition="$val.status eq 0">disabled<else/>enabled</if>.gif" /></td>
                <td align="center">
                	<a href="javascript:;" class="J_showdialog" data-uri="__ROOT__/weTall/index.php?g=admin&m=info_notice&a=edit&id={Lanrain:$val.id}" data-title="编辑 - {Lanrain:$val.title}"  data-id="edit" data-acttype="ajax" data-width="400" data-height="130">编辑</a> | 
                    <a href="javascript:;" class="J_confirmurl" data-acttype="ajax" data-uri="__ROOT__/weTall/index.php?g=admin&m=info_notice&a=delete&id={Lanrain:$val.id}" data-msg="确定删除{Lanrain:$val.name}吗?">删除</a>
                </td>
            </tr>
            </volist>
    	</tbody>
    </table>
    </div>

    <div class="btn_wrap_fixed">
    	<label><input type="checkbox" name="checkall" class="J_checkall">全选/取消</label>
    	<input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="__ROOT__/weTall/index.php?g=admin&m=info_notice&a=deletebrand" data-name="id" data-msg="确定删除吗？" value="删除" />
    	<div id="pages">{Lanrain:$page}</div>
    </div>

</div>
<script>
//初始化弹窗
(function (d) {
    d['okValue'] = lang.dialog_ok;
    d['cancelValue'] = lang.dialog_cancel;
    d['title'] = lang.dialog_title;
})($.dialog.defaults);
</script>

<script src="__ROOT__/weTall/static/js/jquery/plugins/listTable.js"></script>
<script>
$(function(){
	$('.J_tablelist').listTable();
});
</script></body>
</html>